﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class IArena2PrxHelper extends RMIProxyObject implements IArena2Prx
    {
        public static const NAME:String = "Message.Game.IArena2";

        public function IArena2PrxHelper()
        {
            name = "IArena2";
            return;
        }// end function

        public function agreeInviteArenaTeam_async(param1:AMI_IArena2_agreeInviteArenaTeam, param2:SEntityId) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("agreeInviteArenaTeam");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function agreeJoinArenaTeam_async(param1:AMI_IArena2_agreeJoinArenaTeam, param2:SEntityId) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("agreeJoinArenaTeam");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function changeCaptain_async(param1:AMI_IArena2_changeCaptain) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("changeCaptain");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function createArenaTeam_async(param1:AMI_IArena2_createArenaTeam, param2:String) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("createArenaTeam");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeString(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function disbandArenaTeam_async(param1:AMI_IArena2_disbandArenaTeam) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("disbandArenaTeam");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function enterRestRoom_async(param1:AMI_IArena2_enterRestRoom) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("enterRestRoom");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function getArenaTeam_async(param1:AMI_IArena2_getArenaTeam, param2:SEntityId) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("getArenaTeam");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function getArenaTeamAll_async(param1:AMI_IArena2_getArenaTeamAll, param2:int) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("getArenaTeamAll");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeInt(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function getNoTeamPlayers_async(param1:AMI_IArena2_getNoTeamPlayers) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("getNoTeamPlayers");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function inviteArenaTeam_async(param1:AMI_IArena2_inviteArenaTeam, param2:SEntityId) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("inviteArenaTeam");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function joinArenaTeam_async(param1:AMI_IArena2_joinArenaTeam, param2:SEntityId) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("joinArenaTeam");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function kickoutArenaTeam_async(param1:AMI_IArena2_kickoutArenaTeam) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("kickoutArenaTeam");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function leftResetRoom_async(param1:AMI_IArena2_leftResetRoom) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("leftResetRoom");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function quitArenaTeam_async(param1:AMI_IArena2_quitArenaTeam) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("quitArenaTeam");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

    }
}
